/*
 * =====================================================================================
 *
 *       Filename:  main.c
 *
 *    Description:  Test the reverse function
 *
 *        Version:  1.0
 *        Created:  09/09/16 00:11:09
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Andy (gk), andy_y_li@163.com
 *        Company:  RD
 *
 * =====================================================================================
 */

#include "common.h"
#include <stdio.h>
#include <string.h>

int main()
{
    const char *s = "abcdefg";
    char str[32];
    strncpy(str, s, strlen(s));
    printf("s:%s\n", str);
    reverse0(str, strlen(str));
    printf("s0:%s\n", str);
    reverse1(str, strlen(str));
    printf("s1:%s\n", str);
    reverse2(str, strlen(str));
    printf("s2:%s\n", str);
    return 0;
}


